package org.xg.dao;

import java.util.List;

import org.springframework.stereotype.Repository;
import org.xg.domain.AuthorityVO;

import com.googlecode.genericdao.search.Search;

@Repository
public class AuthorityDao extends BaseDao<AuthorityVO, String> {
	
	public List<AuthorityVO> findAuthsByUsername(String username){
		Search s = new Search();
		s.addFilterEqual("users2auth.user.username", username);
		List<AuthorityVO> list = this.search(s);
		return list;
	}
	
}
